package com.group.mapper;

import com.group.pojo.JobData;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author group
 * @since 2021-09-06
 */
public interface JobDataMapper extends BaseMapper<JobData> {

    /**
     * 根据jobid获取数据
     *
     * @param jobData
     * @return
     */
    List<JobData> getJobDataByJobId1(JobData jobData);

    /**
     * 更新状态
     *
     * @param state
     * @return
     */
    int updateJobDataState1(JobData state);

    /**
     * 根据userid获取数据
     *
     * @param jobData
     * @return
     */
    List<JobData> getJobDataByUserId1(JobData jobData);

    /**
     * 添加数据
     *
     * @param jobData
     * @return
     */
    int addJobData1(JobData jobData);

    /**
     * 删除数据
     *
     * @param id
     * @return
     */
    int deleteJobDataById1(Integer id);

    /**
     * 批量删除
     *
     * @param list
     * @return
     */
    int deleteJobDataBatch1(String[] list);
}
